//
//  SSCRequest+API.h
//  SSC
//
//  Created by 红沙尘 on 17/6/6.
//  Copyright © 2017年 红沙尘. All rights reserved.
//

#import "SSCRequest.h"

#define SSC_PAGE_SIZE 10

typedef NS_ENUM(NSInteger, CaipiaoType) {
    CaipiaoTypeUnknow = -1,
    CaipiaoTypeShishicai = 0,//
    CaipiaoTypeFenfencai = 1,//
};

@interface SSCRequest (API)

+ (void)sumAgentListSuccess:(void (^)(NSDictionary *responseObject))success
                       fail:(void (^)(NSError *error))fail;

+ (void)jiebangWithId:(NSString *)cardId
              success:(void (^)(NSDictionary *responseObject))success
                 fail:(void (^)(NSError *error))fail;

+ (void)appUpdateWithSystem:(NSString *)sys
                    success:(void (^)(NSDictionary *responseObject))success
                       fail:(void (^)(NSError *error))fail;

+ (void)agentDayinfoListStartdt:(NSString *)startdt
                          enddt:(NSString *)enddt
                           page:(NSInteger)page
                        success:(void (^)(NSDictionary *responseObject))success
                           fail:(void (^)(NSError *error))fail;

+ (void)cardListSuccess:(void (^)(NSDictionary *responseObject))success
                   fail:(void (^)(NSError *error))fail ;

+ (void)bindCardWithBanks:(NSString *)banks
                 bankname:(NSString *)bankname
                 bankcard:(NSString *)bankcard
                 username:(NSString *)username
                  success:(void (^)(NSDictionary *responseObject))success
                     fail:(void (^)(NSError *error))fail;

+ (void)userPlanBettListStartdt:(NSString *)startdt
                          enddt:(NSString *)enddt
                           page:(NSInteger)page
                          otype:(CaipiaoType)otype
                        success:(void (^)(NSDictionary *responseObject))success
                           fail:(void (^)(NSError *error))fail;

+ (void)planBettingWithIssuenum:(NSString *)issuenum
                         isstop:(NSString *)isstop
                         amount:(NSString *)amount
                          issue:(NSString *)issue
                        numbers:(NSString *)numbers
                          otype:(CaipiaoType)otype
                           list:(NSMutableArray *)list
                        success:(void (^)(NSDictionary *responseObject))success
                           fail:(void (^)(NSError *error))fail;

+ (void)queryFutrueListIssueWithType:(CaipiaoType)otype
                             success:(void (^)(NSDictionary *responseObject))success
                                fail:(void (^)(NSError *error))fail;

+ (void)queryPlayMenthodListSuccess:(void (^)(NSDictionary *responseObject))success
                               fail:(void (^)(NSError *error))fail;

+ (void)queryCurrentIssueWithType:(CaipiaoType)otype
                          success:(void (^)(NSDictionary *responseObject))success
                             fail:(void (^)(NSError *error))fail;

+ (void)userforgetpassWithUsername:(NSString *)username
                             email:(NSString *)email
                           content:(NSString *)content
                           success:(void (^)(NSDictionary *responseObject))success
                              fail:(void (^)(NSError *error))fail;

+ (void)bettEndtimeSuccess:(void (^)(NSDictionary *responseObject))success
                      fail:(void (^)(NSError *error))fail;

+ (void)userOrderListStartdt:(NSString *)startdt
                       enddt:(NSString *)enddt
                        page:(NSInteger)page
                        type:(CaipiaoType)otype
                     success:(void (^)(NSDictionary *responseObject))success
                        fail:(void (^)(NSError *error))fail;

+ (void)bettingWithAmount:(NSString *)amount
                    issue:(NSString *)issue
                  numbers:(NSString *)numbers
                    otype:(CaipiaoType)otype
                     list:(NSMutableArray *)list
                  success:(void (^)(NSDictionary *responseObject))success
                     fail:(void (^)(NSError *error))fail;

+ (void)applyAmount:(NSString *)amount
               type:(NSString *)type
           password:(NSString *)password
             bankid:(NSString *)bankid
            success:(void (^)(NSDictionary *responseObject))success
               fail:(void (^)(NSError *error))fail;

+ (void)orderWinListStartdt:(NSString *)startdt
                      enddt:(NSString *)enddt
                       page:(NSInteger)page
                    success:(void (^)(NSDictionary *responseObject))success
                       fail:(void (^)(NSError *error))fail;

+ (void)applyAmountLogsStartdt:(NSString *)startdt
                         enddt:(NSString *)enddt
                          page:(NSInteger)page
                       success:(void (^)(NSDictionary *responseObject))success
                          fail:(void (^)(NSError *error))fail;

+ (void)rechargeAmountLogsStartdt:(NSString *)startdt
                            enddt:(NSString *)enddt
                             page:(NSInteger)page
                          success:(void (^)(NSDictionary *responseObject))success
                             fail:(void (^)(NSError *error))fail;

+ (void)rechargeAmount:(NSString *)amount
                  type:(NSString *)type
               success:(void (^)(NSDictionary *responseObject))success
                  fail:(void (^)(NSError *error))fail;

+ (void)lotteryHistoryListAtDate:(NSString *)date
                            page:(NSInteger)page
                            type:(CaipiaoType)otype
                         success:(void (^)(NSDictionary *responseObject))success
                            fail:(void (^)(NSError *error))fail;

+ (void)bannerListSuccess:(void (^)(NSDictionary *responseObject))success
                     fail:(void (^)(NSError *error))fail;

+ (void)queryNoticeListSuccess:(void (^)(NSDictionary *responseObject))success
                          fail:(void (^)(NSError *error))fail;

+ (void)queryUserAmountSuccess:(void (^)(NSDictionary *responseObject))success
                          fail:(void (^)(NSError *error))fail;

+ (void)updateAmountpassword:(NSString *)old
                    password:(NSString *)password
                truepassword:(NSString *)truepassword
                     success:(void (^)(NSDictionary *responseObject))success
                        fail:(void (^)(NSError *error))fail;

+(void)updatepassword:(NSString *)old
             password:(NSString *)password
         truepassword:(NSString *)truepassword
              success:(void (^)(NSDictionary *responseObject))success
                 fail:(void (^)(NSError *error))fail;

+ (void)regWithUsername:(NSString *)username
               password:(NSString *)password
                success:(void (^)(NSDictionary *responseObject))success
                   fail:(void (^)(NSError *error))fail;

+ (void)loginWithAccount:(NSString *)account
                password:(NSString *)password
                 success:(void (^)(NSDictionary *responseObject))success
                    fail:(void (^)(NSError *error))fail;
@end
